package com.bbzn.device.client.dao.process;

import com.bbzn.device.client.dataobject.ProcessFlow;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ProcessFlowMapper {
    /**
     * delete by primary key
     *
     * @param processId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long processId);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(ProcessFlow record);

    int insertOrUpdate(ProcessFlow record);

    int insertOrUpdateSelective(ProcessFlow record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(ProcessFlow record);

    /**
     * select by primary key
     *
     * @param processId primary key
     * @return object by primary key
     */
    ProcessFlow selectByPrimaryKey(Long processId);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(ProcessFlow record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(ProcessFlow record);

    List<ProcessFlow> findByAll(ProcessFlow processFlow);

    ProcessFlow findOneByProcessId(@Param("processId") Long processId);

    int updateBatch(List<ProcessFlow> list);

    int updateBatchSelective(List<ProcessFlow> list);

    int batchInsert(@Param("list") List<ProcessFlow> list);

    int findCountByAll(ProcessFlow processFlow);

    List<Long> findIdByAll(ProcessFlow processFlow);

    /**
     * delete by primary key
     *
     * @param processIds primaryKey
     * @return deleteCount
     */
    int batchDel(@Param("list")List<Long> processIds);
}